package com.example.xianji.activity;

import com.example.xianji.R;
import com.example.xianji.adapter.FuWu_FenLei_Adapter;
import com.example.xianji.single.Single;

import android.os.Bundle;
import android.app.Activity;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import android.widget.ListView;

public class Main_HangYe_FenleiActivity extends Activity {
    private ImageView qiye_hangye_fenlei_back;
    private ListView hangye_listview;
    private FuWu_FenLei_Adapter mFuWu_FenLei_Adapter;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main__hang_ye__fenlei);
        //XJApplication.getInstance().addActivity(this);
        qiye_hangye_fenlei_back = (ImageView) findViewById(R.id.qiye_hangye_fenlei_back);
        hangye_listview = (ListView) findViewById(R.id.hangye_listview);
        mFuWu_FenLei_Adapter = new FuWu_FenLei_Adapter(this, Single.getInstance().getList());

        hangye_listview.setAdapter(mFuWu_FenLei_Adapter);
        qiye_hangye_fenlei_back.setOnClickListener(new OnClickListener() {

            @Override
            public void onClick(View v) {
                Main_HangYe_FenleiActivity.this.finish();
            }
        });
    }
}
